import { Module } from '@nestjs/common';
import { CommonService } from './common.service';
import { CommonController } from './common.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Teacher } from '../teacher/entities/teacher.entity';
import { Major } from '../major/entities/major.entity';
import { Role } from '../roles/entities/role.entity';
import { Department } from '../department/entities/department.entity';
import { ClassRoom } from '../class-rooms/entities/class-room.entity';
import { Course } from '../course/entities/course.entity';
import { TimeSlot } from '../time-slots/entities/time-slot.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Teacher,
      Major,
      Role,
      Department,
      ClassRoom,
      Course,
      TimeSlot,
    ]),
  ],
  controllers: [CommonController],
  providers: [CommonService],
  exports: [CommonService],
})
export class CommonModule {}
